 <?php 
 require './common/menu.php';
  ?>
 <!doctype html>
<html>
 <head>
  <meta charset="UTF-8">
  <title>添加歌曲</title>
 </head>
 <body>
  <form method="post" action="admin.php?c=music&m=add" enctype="multipart/form-data" class="form-horizontal">
  <div class="form-group">
    <label  class="col-sm-2 control-label">音乐名称</label>
    <div class="col-sm-6">
    <input type="text" class="form-control" name="song" required>
    </div>
  </div>


                        <div class="form-group">
                            <label class="col-md-2 control-label">歌手</label>
                            <div class="col-sm-6">
                                <select class="form-control" name="singer">
                                    <option value="0">---请选择---</option>
                                    <?php
                                    foreach ($data['singers'] as $row) {
                                        echo "<option value={$row['gid']}>" . $row['gname'] . "</option>";
                                    }
                                    ?>
                                </select>
                            </div>
                        </div>


  <div class="form-group">
  <label  class="col-sm-2 control-label">链接</label>
  <div class="col-sm-6">
    <input type="file" class="btn btn-primary" name="url">
  </div>
  </div>


 
<div class="form-group col-sm-8 control-label">
    <button type="submit" class="btn btn-primary" value="提交">提交</button>
    <button type="reset" class="btn btn-primary" value="重置">重置</button>
  </div>

 </form>
 </body>
</html>




